package sctu.edu.java.year2016.team05.zengkun.day20160601.chapter9_3;

/**
 * Created by mike on 2016/6/1.
 */
public class Link implements Sum {
    int r;
    int x, x1;

    public void getsum(int a, int b) {
        a = x1;
        b = x;
        r = a + b;


        Sum x = new Sum() {
            @Override
            public void getsum(int a, int b) {

                System.out.println("两个数的和是：" + r);
            }
        };
        x.getsum(a, b);
    }


}
